package design_mode.observer;

public class Client {
    public static void main(String[] args) {
        WeixinSubject weixinSubject = new WeixinSubject();
        WeixinUser user1 = new WeixinUser("walt");
        WeixinUser user2 = new WeixinUser("zhongxj");
        WeixinUser user3 = new WeixinUser("xuchuyao");


        weixinSubject.addObserver(user1);
        weixinSubject.addObserver(user2);
        weixinSubject.addObserver(user3);

        weixinSubject.notifyObservers("update message!");



    }
}
